﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="副本 Default.aspx.cs" Inherits="System_SysParameters_Default"
    ValidateRequest="false" EnableViewState="false" MaintainScrollPositionOnPostback="true" %>

<%@ Register TagPrefix="esshs" Namespace="Titan.WebForm" Assembly="WebCalendar" %>
<%--<%@ Register TagPrefix="UserControl" Src="~/UserControl/ComQueryControls.ascx" TagName="QueryControl" %>
--%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>数据显示</title>
<%--    <link href="../../CSS/css.css" rel="stylesheet" type="text/css" />--%>
    <script language="javascript" type="text/javascript" src="../js/JS_common.js"></script>

    <script language="javascript" type="text/javascript" src="../js/GeneralPage.js"></script>

    <style type="text/css">
    div#detailDiv {
      border:0px;
     }
    div#detailDiv table{
     
      background-color:#EFF7FF;
      /*position:absolute;*/
     }
     td
     {
        height:20px;
     }
     body{
        font-size:12px;
        margin:0px;
        pading:0px;
     }
     .imgStyle
     {
        border:0px;
        float:left;
        cursor:pointer;
     }
     .FirstLevel
     {
        /*background-image:url(../../images/Main/Module.png);*/
        background-repeat:repeat-x;
        width:auto;
        height:18px;
        
     }
     /*没有链接的字体颜色*/
     a
     {
        text-decoration: none;
        cursor:pointer;
        color:black;
     }
     /*跳转后的颜色,有链接的字体颜色*/
     a:link,a:visited
     {
        text-decoration: none;
        cursor:pointer;
        color:black;
     }
     
     /*鼠标停留时的颜色*/
     a:hover
     {
        color:gold;
        font-weight: bold;
     }
     
     /*选中时的颜色*/
     .Red
     {
        color:red;
        font-weight: bold;
     }
    </style>

    <script language="javascript" type="text/javascript">
    function doDefaultAction(form) {
        if (form.btnQueryNormal) {
            form.btnQueryNormal.focus();
            form.btnQueryNormal.click();
        } else if (form.btnQueryCustom) {
            form.btnQueryCustom.focus();
            form.btnQueryCustom.click();
        }
    }
    ///////////////////////////////////////////////////////////////////////////////
    function ExpandChildren(clickObj,childTRName,level)
    {
        var allTR = document.getElementById("dataTable").rows;
        var trlength = allTR.length;
        var trange = "";
        trange = "White";
        /*if(level != 1)
        {
            trange = "White";
        }*/
        for(var i=0;i<trlength;i++)
        {
            var strObj = new String(allTR[i].getAttribute("id"));
            if(strObj.indexOf(childTRName+"_")==0)
            {
                    //展开下一级  
                if((clickObj.title=="展开") && (strObj.split('_').length == childTRName.split('_').length+1) && (allTR[i].style.display=='none'))
                {              
                    allTR[i].style.display='block';  
                }
                else if((strObj.split('_').length > childTRName.split('_').length) && (allTR[i].style.display=='block') )//收起所有子级
                {
                    allTR[i].style.display='none';    
                    var childrenArray = allTR[i].children;
                    var childrenlength = childrenArray.length;
                    for(var j = 0;j< childrenlength;j++)
                    {
                        var clickA = WebForm_GetElementByTagName(childrenArray[j],"img");
                        if(clickA!=null && clickA.title != "不能展开")
                        {
                            clickA.title = '展开';
                            clickA.src= "../images/Main/Whitecollapse.png";
                            break;
                        }
                    }
                }
             }
        }
        if(clickObj.title == "展开")
        {
            clickObj.title = '收起';
            clickObj.src = "../images/Main/" + trange + "Expand.png";
        }
        else if(clickObj.title == "收起")
        {
            clickObj.title = '展开';
            clickObj.src = "../images/Main/" + trange + "collapse.png";
        }
    }
    
    function imgExpand(imgid,objA)
    {
    
        var obj = document.getElementById(imgid);
        if(obj != null && obj.title != "不能展开")
        {
            obj.click();
        }

        
        var links = document.getElementsByTagName("a");
        if(objA.href !="")
        {
            for(var i = 0;i<links.length;i++)
            {
                if(links[i].href != "")
                {
                    links[i].style.color = "";
                    links[i].style.fontWeight = "";
                }
            }
            objA.style.color = "Red";
            objA.style.fontWeight= "bold";
        }
        
    }
    
    
//获取对象的位置    
function getElementPos(elementId) {
     var ua = navigator.userAgent.toLowerCase();
     var isOpera = (ua.indexOf('opera') != -1);
     var isIE = (ua.indexOf('msie') != -1 && !isOpera); // not opera spoof
     var el = elementId;//document.getElementById(elementId);
     if(el.parentNode === null || el.style.display == 'none') {
            return false;
    }      
    var parent = null;
    var pos = [];     
    var box;     
    if(el.getBoundingClientRect)    //IE
    {         
        box = el.getBoundingClientRect();
        var scrollTop = Math.max(document.documentElement.scrollTop, document.body.scrollTop);
        var scrollLeft = Math.max(document.documentElement.scrollLeft, document.body.scrollLeft);
        return {x:box.left + scrollLeft, y:box.top + scrollTop};
    }
    else if(document.getBoxObjectFor)    // gecko    
    {
        box = document.getBoxObjectFor(el); 
        var borderLeft = (el.style.borderLeftWidth)?parseInt(el.style.borderLeftWidth):0; 
        var borderTop = (el.style.borderTopWidth)?parseInt(el.style.borderTopWidth):0; 
        pos = [box.x - borderLeft, box.y - borderTop];
    }
    else    // safari & opera    
    {
        pos = [el.offsetLeft, el.offsetTop];  
        parent = el.offsetParent;     
        if (parent != el) { 
            while (parent) {  
                pos[0] += parent.offsetLeft; 
                pos[1] += parent.offsetTop; 
                parent = parent.offsetParent;
            }  
        }   
        if (ua.indexOf('opera') != -1 || ( ua.indexOf('safari') != -1 && el.style.position == 'absolute' )) { 
            pos[0] -= document.body.offsetLeft;
            pos[1] -= document.body.offsetTop;         
        }    
    }              
    if (el.parentNode) { 
        parent = el.parentNode;
    } else {
        parent = null;
    }
    while (parent && parent.tagName != 'BODY' && parent.tagName != 'HTML') { // account for any scrolled ancestors
        pos[0] -= parent.scrollLeft;
        pos[1] -= parent.scrollTop;
        if (parent.parentNode) {
            parent = parent.parentNode;
        } else {
            parent = null;
        }
    }
    return {x:pos[0], y:pos[1]};
}

function pos1(ida)
{
  if(ida.title != "")//判断需不需要提示
  { 
      var pos=getElementPos(ida);
      var tip = document.getElementById("tip");
      var posionTop = pos.y + ida.offsetHeight;
      tip.style.left = pos.x ;
      tip.style.top = posionTop;
      tip.style.width = (parent.document.frames["LeftFrame"].document.body.scrollWidth - pos.x -25) + "px";
      tip.style.display = "block";
      tip.innerHTML = ida.title;
      ida.title = "";
  }
}

//隐藏提示DIV
function hidden(obj)
{
        var tip = document.getElementById("tip");
        tip.style.display = "none";
        obj.title = tip.innerHTML;
        tip.innerHTML = "";
    
}
    ///////////////////////////////////////////////////////////////////////////////

    
    </script>

</head>
<body onkeydown="return false;">
    <form id="form1" runat="server" >
    <div id="tip" style=" background-image:url(../images/Main/ucardbg.gif);display:none;position:absolute;left:0px;top:0px;word-wrap:break-word;background-color:White;border:1px solid gray">
        </div>
        <div id="MainContentCommon">
            <div class="">
                <table id="dataTable" class="" cellspacing="0" cellpadding="0" style="">
                    <tbody id="tab_content" runat="server" align="left">
                    </tbody>
                </table>
            </div>
        </div>
    </form>
</body>
</html>
